// src/index.js

// 导入 react 核心库.
import React from 'react';
// 导入 react DOM 库.
import ReactDOM from 'react-dom';

import {
  BrowserRouter as Router,
  Link, Route,
} from 'react-router-dom';

import './css/global.scss';

import createMemoryHistory from 'history/createMemoryHistory';

const customHistory = createMemoryHistory(location);

/* --- 基础路由 --- */

//import App from './components/BasicListExample';

/* --- 带参路由 --- */

//import App from './components/URLParametersListExample';

/* --- 授权 --- */

//import App from './components/AuthExample';

/* --- 定制链接 --- */

//import App from './components/CustomLinkExample';

/* --- 防止跳转（用在写表单时） --- */

//import App from './components/PreventingTransitionsExample';

/* --- 没有匹配（404） --- */

//import App from './components/NoMatchExample';

/* --- 递归匹配 --- */

//import App from './components/RecursiveExample';

/* --- 侧边栏例子 --- */

//import App from './components/SidebarExample';

/* --- 动画过滤例子 --- */

//import App from './components/AnimationExample';

/* --- 模糊匹配例子（静态 + 动态 混合路由规则） --- */

//import App from './components/AmbiguousExample';

/* --- 路由配置例子（根据数据配置路由） --- */

import App from './components/RouteConfigExample';

/* --- */

ReactDOM.render(
  <Router history={customHistory}>
    <App />
  </Router>,
  document.getElementById('root')
);
